<table>
    <tr>
        <td class="synth-mois">
            <div class="synth-wrapper">
                <div>
                    <table>
                        <tr>
                            <td class="pc-content-head-title">Synthèse mois</td>
                            <td class="pc-content-head-icons"><img width="32" src="<?php echo $this->basePath() . '/img/operationtest/soleil.png'; ?>" /></td>
                            <td class="pc-content-head-icons value">
                                <?php
                                $nbtype1 = 0;
                                foreach ($meteoMonth as $metM):
                                    if ($metM['type'] == 1):
                                        $nbtype1 = $metM['nbMeteo'];
                                    endif;
                                endforeach;
                                echo '<span class="mt">' . $nbtype1 . '</span>';
                                ?>
                            </td>
                            <td class="pc-content-head-icons"><img width="32" src="<?php echo $this->basePath() . '/img/operationtest/nuage-soleil.png'; ?>" /></td>
                            <td class="pc-content-head-icons value">
                                <?php
                                $nbtype2 = 0;
                                foreach ($meteoMonth as $metM):
                                    if ($metM['type'] == 2):
                                        $nbtype2 = $metM['nbMeteo'];
                                    endif;
                                endforeach;
                                echo '<span class="mt">' . $nbtype2 . '</span>';
                                ?>
                            </td>
                            <td class="pc-content-head-icons"><img width="32" src="<?php echo $this->basePath() . '/img/operationtest/nuage-pluie.png'; ?>" /></td>
                            <td class="pc-content-head-icons value">
                                <?php
                                $nbtype3 = 0;
                                foreach ($meteoMonth as $metM):
                                    if ($metM['type'] == 3):
                                        $nbtype3 = $metM['nbMeteo'];
                                    endif;
                                endforeach;
                                echo '<span class="mt">' . $nbtype3 . '</span>';
                                ?>
                            </td>
                            <td class="pc-content-head-icons"><img width="32" src="<?php echo $this->basePath() . '/img/operationtest/neige.png'; ?>" /></td>
                            <td class="pc-content-head-icons value">
                                <?php
                                $nbtype4 = 0;
                                foreach ($meteoMonth as $metM):
                                    if ($metM['type'] == 4):
                                        $nbtype4 = $metM['nbMeteo'];
                                    endif;
                                endforeach;
                                echo '<span class="mt">' . $nbtype4 . '</span>';
                                ?>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <table class="synth-table">
                        <tr>
                            <th width="20%"></th>
                            <th width="40%" class="lib-top inscoring" colspan="2">Semaine</th>
                            <th width="40%" class="lib-top inscoring" colspan="2">W.E</th>
                        </tr> 
                        <tr>
                            <th width="20%"></th>
                            <th width="20%" class="lib-top inscoring">Le plus haut</th>
                            <th width="20%" class="lib-top inscoring">Le plus bas</th>
                            <th width="20%" class="lib-top inscoring">Le plus haut</th>
                            <th width="20%" class="lib-top inscoring">Le plus bas</th>
                        </tr> 
                        <tr class="rubTr ca">
                            <td width="20%" class="lib-left">CA TTC</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxCattcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxCattc, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minCattcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minCattc, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr ca">
                            <td width="20%" class="lib-left">CA HT</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxCahtWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxCaht, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minCahtWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minCaht, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr ie">
                            <td width="20%" class="lib-left">Transactions</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxNbtWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxNbt, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minNbtWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minNbt, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr ie">
                            <td width="20%" class="lib-left">Ticket Moyen</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxCattcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxCattc/$maxNbt, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minCattcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minCattc/$minNbt, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr mo">
                            <td width="20%" class="lib-left">Main d'oeuvre</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr mo">
                            <td width="20%" class="lib-left">Nombre heure MO</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr mo">
                            <td width="20%" class="lib-left">Productivité</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr dtmo">
                            <td width="20%" class="lib-left">Transferts entrants</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr dtmo">
                            <td width="20%" class="lib-left">Transferts sortants</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr mba">
                            <td width="20%" class="lib-left">Marge brute</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr mba">
                            <td width="20%" class="lib-left">Alimentaire</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr mba">
                            <td width="20%" class="lib-left">Emballage</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr pro">
                            <td width="20%" class="lib-left">Pertes</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr pro">
                            <td width="20%" class="lib-left">Repas</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxRepasWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxRepas, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minRepasWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minRepas, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>  
                        <tr class="rubTr pro">
                            <td width="20%" class="lib-left">Offerts</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr ea">
                            <td width="20%" class="lib-left">Ecarts caisses</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxEcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxEc, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minEcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minEc, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr ea">
                            <td width="20%" class="lib-left">Montant annulations</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxMacWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxMac, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minMacWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minMac, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                        <tr class="rubTr ea">
                            <td width="20%" class="lib-left">Nombre annulations</td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $maxAcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($maxAc, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">
                                <table width="100%">
                                    <tr>
                                        <td width="60%" class="lib-value-left"><?php echo $minAcWeek; ?></td>
                                        <td width="40%" class="lib-value-right"><?php echo number_format($minAc, 2, ',', ' '); ?></td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                            <td width="20%" class="lib-value">&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </div>
        </td>
    </tr>
</table>